//
//  SYKeyboardHeader.h
//  SYKeyboard
//
//  Created by hc on 2019/3/1.
//  Copyright © 2019 hc. All rights reserved.
//

#ifndef SYKeyboardHeader_h
#define SYKeyboardHeader_h

#define SYKeyboardToolHeight    50
#define SYKeyboardHeight        240
#define SYKeyboardScreenWidth   [UIScreen mainScreen].bounds.size.width
#define SYKeyboardScreenHeight  [UIScreen mainScreen].bounds.size.height

#define SYColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]


// 判断是否是iPhone X系列
#define SYKeyboardIS_iPhoneX      ([UIScreen instancesRespondToSelector:@selector(currentMode)] ?\
(\
CGSizeEqualToSize(CGSizeMake(375, 812),[UIScreen mainScreen].bounds.size)\
||\
CGSizeEqualToSize(CGSizeMake(812, 375),[UIScreen mainScreen].bounds.size)\
||\
CGSizeEqualToSize(CGSizeMake(414, 896),[UIScreen mainScreen].bounds.size)\
||\
CGSizeEqualToSize(CGSizeMake(896, 414),[UIScreen mainScreen].bounds.size))\
:\
NO)


#endif /* SYKeyboardHeader_h */
